home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sounds Terrific 2
/
Sounds Terrific II (1996)(Weird Science)(Disc 2 of 2)[Amiga-PC].iso
/
midcraft
/
magazine
/
special1
/
arexx
/
example2.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-08-03
|
642b
|
24 lines
/* This is an example ARexx script for use with MidiPlay.
Use the following parameter: FILENAMEREXX=ThisScript.rexx
When MidiPlay has loaded a new file, it calls ThisScript.
Argument consists of drive, path, file and extension of the filename.
This particular example tries to view a text file with a name
'.../file.txt' when loaded file was '.../file.mid'.
*/
options results
parse arg Drive ',' Path ',' File ',' Extension .
if Path == "" then Path2 = Path
else Path2 = Path || '/'
Ext2 = "txt"
Whole = '' || Drive || Path2 || File || '.' || Ext2 || ''
address command
if exists(Whole) then
'run more' '"'Whole'"'